﻿using Microsoft.AspNetCore.Authorization;

namespace Permission
{
    /// <summary>
    /// 权限条件
    /// </summary>
    public class PermissionRequirement : IAuthorizationRequirement
    {
        public string PermissionName { get; }

        public PermissionRequirement(string PermissionName)
        {
            this.PermissionName = PermissionName;
        }

        //public PermissionRequirement(params string[] permissions)
        //{
        //    Permissions = permissions ?? Array.Empty<string>();
        //}


        //public string[] Permissions { get; set; }
    }
}
